import request from '@/utils/request'
const module = '/admin/system/menu'
//查询父子菜单列表
export const GetMenuList = () => {
  return request.get(`${module}/menuList`)
}

//添加父菜单
export const SaveFatherMenu = data => {
  return request.post(`${module}/saveFatherMenu`, data)
}

//删除菜单
export const DeleteMenu = id => {
  return request.delete(`${module}/deleteMenu/${id}`)
}

/* //添加下级节点
export const SaveSonMenu = data => {
  return request.post(`${module}/saveSonMenu`, data)
}
 */
//修改菜单
export const UpdateMenu = data => {
  return request.put(`${module}/updateMenu`, data)
}
